const jwt = require('jsonwebtoken');
const secretKey = 'online_exam_system'

const payload = {
  id: 33,
  roleId: 3,
}; 

const token = jwt.sign(payload, secretKey, { expiresIn: '24h' });

console.log(token);
